package com.ruoyi.syf.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.syf.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("隐患整改表")
public class RiskCheckDangerFix extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private Long id;

    @ApiModelProperty(value = "隐患ID")
    private Long dangerId;

    @ApiModelProperty(value = "整改说明")
    private String fixDescribe;

    @ApiModelProperty(value = "整改资金")
    private BigDecimal useMoney;

    @ApiModelProperty(value = "最终整改人")
    private Long actualFixBy;

    @ApiModelProperty(value = "验收人部门")
    private Long detectDept;

    @ApiModelProperty(value = "验收人")
    private Long detectBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "整改时间")
    private Date fixTime;

    @ApiModelProperty(value = "照片")
    private String photograph;

    @ApiModelProperty(value = "整改状态,0待整改,1已整改,2超期未整改")
    private String fixStatus;

}
